home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Inside Mac Games Volume 3 #12
/
IMG 33 Dec 1995.iso
/
Shareware
/
Gossamer 2.0
/
Sample Objects
/
OCTBALL.PLG
< prev
next >
Wrap
Text File
|
1994-01-13
|
3KB
|
88 lines
# an octagonal ball visible from the outside, 1000x1000
octball 32 26
# vertices:
# X Y Z
# front middle ring
-206.522 -500 -206.522 #VTX 0 # vertex 0
206.522 -500 -206.522 #VTX 1 # vertex 1
500 -206.522 -206.522 #VTX 2 # vertex 2
500 206.522 -206.522 #VTX 3 # vertex 3
206.522 500 -206.522 #VTX 4 # vertex 4
-206.522 500 -206.522 #VTX 5 # vertex 5
-500 206.522 -206.522 #VTX 6 # vertex 6
-500 -206.522 -206.522 #VTX 7 # vertex 7
# rear middle ring
-206.522 -500 206.522 #VTX 8 # vertex 8
206.522 -500 206.522 #VTX 9 # vertex 9
500 -206.522 206.522 #VTX 10 # vertex 10
500 206.522 206.522 #VTX 11 # vertex 11
206.522 500 206.522 #VTX 12 # vertex 12
-206.522 500 206.522 #VTX 13 # vertex 13
-500 206.522 206.522 #VTX 14 # vertex 14
-500 -206.522 206.522 #VTX 15 # vertex 15
# front face
-92.3913 -208.696 -500 #VTX 16 # vertex 16
92.3913 -208.696 -500 #VTX 17 # vertex 17
208.696 -92.3913 -500 #VTX 18 # vertex 18
208.696 92.3913 -500 #VTX 19 # vertex 19
92.3913 208.696 -500 #VTX 20 # vertex 20
-92.3913 208.696 -500 #VTX 21 # vertex 21
-208.696 92.3913 -500 #VTX 22 # vertex 22
-208.696 -92.3913 -500 #VTX 23 # vertex 23
# back face
-92.3913 -208.696 500 #VTX 24 # vertex 24
92.3913 -208.696 500 #VTX 25 # vertex 25
208.696 -92.3913 500 #VTX 26 # vertex 26
208.696 92.3913 500 #VTX 27 # vertex 27
92.3913 208.696 500 #VTX 28 # vertex 28
-92.3913 208.696 500 #VTX 29 # vertex 29
-208.696 92.3913 500 #VTX 30 # vertex 30
-208.696 -92.3913 500 #VTX 31 # vertex 31
# polygons: all cosine-lit, assorted colors
# color #verts vert1 vert2 ...
0x11ff 8 16 17 18 19 20 21 22 23 # front face: counterclockwise
0x12ff 8 31 30 29 28 27 26 25 24 # back face: clockwise
# middle ring of polys: same as the octagonal cylinder
# these faces are facing us in the sketch, thus are CCW
0x13ff 4 5 4 12 13 # top
0x14ff 4 4 3 11 12
0x15ff 4 3 2 10 11 # right side
0x16ff 4 2 1 9 10
# these faces are away from us in the sketch, and thus CW
0x17ff 4 8 9 1 0 # bottom
0x18ff 4 15 8 0 7
0x19ff 4 14 15 7 6 # left side
0x1aff 4 13 14 6 5
# Now we need to create the end poly rings. We can simply use
# the polys above, changing the vertex numbers because we kept
# the rings of vertexes together
# frontmost ring: vertices 0..7 -> 16..23, 8..15 -> 0..7
0x13ff 4 21 20 4 5 # top
0x14ff 4 20 19 3 4
0x15ff 4 19 18 2 3 # right side
0x16ff 4 18 17 1 2
0x17ff 4 0 1 17 16 # bottom
0x18ff 4 7 0 16 23
0x19ff 4 6 7 23 22 # left side
0x1aff 4 5 6 22 21
# rearmost ring: vertices 8..15 -> 24..31, 0..7 -> 8..15
0x13ff 4 13 12 28 29 # top
0x14ff 4 12 11 27 28
0x15ff 4 11 10 26 27 # right side
0x16ff 4 10 9 25 26
0x17ff 4 24 25 9 8 # bottom
0x18ff 4 31 24 8 15
0x19ff 4 30 31 15 14 # left side
0x1aff 4 29 30 14 13